import wordcloud
string = open('C:/Users/Administrator/Desktop/sucai/alice.txt',encoding='utf-8').read()
import imageio
mk = imageio.imread("C:/Users/Administrator/Desktop/sucai/alice.png")
w = wordcloud.WordCloud(background_color="white",
mask=mk,
contour_width=1,
contour_color='steelblue')
w.generate(string)
w.to_file('output9-contour.png')
